import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget{
  @override
    Widget build(BuildContext context) {


      // TODO: implement build
      return MaterialApp(
        home: Scaffold(
          appBar: AppBar(
            title: Text(
             'Home' 
            ),
          ),
          body: Center(
            child: Container(
              child: Image.network(
                'http://img.kidmadeto.com/bms/temp/9d36ab7e4f3943b7b296d73e071fefa3.jpg!710!710',
                scale: 2.0,
                // fit: BoxFit.fill, // 充满容器 (会变形)
                // fit: BoxFit.contain, // 最大显示图片（不变形）
                // fit: BoxFit.cover // 覆盖整个容器（宽度不变形）
                // fit: BoxFit.fitWidth, // 充满宽度
                // fit: BoxFit.scaleDown,
                // color: Colors.greenAccent,
                // colorBlendMode: BlendMode.difference,
                  repeat: ImageRepeat.repeat,
              ),
              width: 600.0,
              height: 300.0,
              color: Colors.lightBlue,
            )
          )
        ),
      );
    }
}